<?php

email::send_email("udnweb@gmail.com", "Confirmation Message From UDNMovies", "Dear UDNWeb, your email is ready for use. check email.php file for details..");

class email
{
    public static function send_email($to, $subject, $message)
    {
        $email = 'info@udnmovies.info';
        $header = "From: UDNMovies <" . $email . ">\r\n";

        ini_set('sendmail_from', $email);

        mail($to, $subject, $message, $header);
    }
}